<script type="text/javascript">
           jQuery(document).ready(function(){
               // binds form submission and fields to the validation engine
               jQuery("#NotaremisioneNotaremisionForm").validationEngine();
              
           });
 </script>


<!-- Columns -->
<div id="cols" class="box"> 

    <!-- Aside (Left Column) -->
    
    <!-- Content (Right Column) -->
    
    <div id="content" class="box">
        <h1>DATOS PARA HOJA DE REMISION</h1>
        <div style="margin:30px 0;"></div>
      
        
          <?php echo $this->Form->create('Notaremisione'); ?>
      	
      	 <table>
          <tr>
            <td>Fecha : </td>
            <td><?php echo $this->Form->text('fecha',array('id'=>'fecha_inc','class'=>'validated[required] input-text'));?></td>
          </tr>
          <tr>
            <td>Numero de Nota de Remision: </td>
            <td><?php echo $this->Form->text('numero',array('id'=>'note', 'class'=>'validate[required] input-text'));?></td>
            <td> ULTIMO NUMERO <br>DE REMISION : <strong><?php echo $numero;?></strong></td>
          </tr>
          <tr>
            <td>Numero de factura: </td>
            <td><?php echo $this->Form->text('numero_factura',array('id'=>'fac', 'class'=>'validate[required] input-text'));?></td>
            <td>Tipo de pago:<br>

                <?php
                        $options=array('contado'=>'Contado','credito'=>'Credito','saldo'=>'Saldo');
                        $attributes=array('legend'=>false, 'class'=>'validate[required] radio');
                        echo $this->Form->radio('tipo_pago',$options,$attributes);
                ?>
<input type="hidden" value="<?php echo $this->Session->read('sucursal_id');?>" name="data[Notaremisione][sucursal_id]">
            </td>
          </tr>
            <tr>
            <td>Observaciones: </td>
            <td><?php echo $this->Form->text('observaciones');?></td>
          </tr>
          
        </table>
      
      
    <?php $option = array('Value' => 'FINALIZAR', 'class' =>
            "input-submit"); ?>
             <?php echo $this->Form->end($option); ?> 


       
        
   
    </div>
    <div class="grid-buttons">
                     <!--<div class="title-grid"><span>Acciones</span></div>-->
            <div class="content-gird">
                    <div style="float: left; margin-left:50px;">
                        <input type="button" class="input-submit-02" value="Atras" onclick="javascript:history.back();" /> 
                    </div>
                   
                    
                <div class="clear"> </div>
            </div>

        </div>
    <!-- /content --> 

</div>
<!-- /cols -->

<script type="text/javascript">
		jQuery(document).ready(function(){
    		var opts={
    		changeMonth:true,
    		changeYear:true,
    		dateFormat: "dd-mm-yy",
           
    		};
            jQuery("#fecha_inc").datepicker(opts);
        });
</script>